package com.bjsxt.livegoods.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

public class Order implements Serializable {
    private String id;
    private String title;
    private String houseType;
    private String price;
    private String rentType;
    //是否评价。 0-未评价，1-评价中 2-已评价
    private String commentState;
    private String img;
    private String userPhone;
    private Date createTime;
    private String productId;

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Order order = (Order) o;
        return Objects.equals(id, order.id) && Objects.equals(title, order.title) && Objects.equals(houseType, order.houseType) && Objects.equals(price, order.price) && Objects.equals(rentType, order.rentType) && Objects.equals(commentState, order.commentState) && Objects.equals(img, order.img) && Objects.equals(userPhone, order.userPhone) && Objects.equals(createTime, order.createTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, title, houseType, price, rentType, commentState, img, userPhone, createTime);
    }

    @Override
    public String toString() {
        return "Order{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", houseType='" + houseType + '\'' +
                ", price='" + price + '\'' +
                ", rentType='" + rentType + '\'' +
                ", commentState='" + commentState + '\'' +
                ", img='" + img + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }

    public Order() {
    }

    public Order(String id, String title, String houseType, String price, String rentType,
                 String commentState, String img, String userPhone, Date createTime) {
        this.id = id;
        this.title = title;
        this.houseType = houseType;
        this.price = price;
        this.rentType = rentType;
        this.commentState = commentState;
        this.img = img;
        this.userPhone = userPhone;
        this.createTime = createTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getHouseType() {
        return houseType;
    }

    public void setHouseType(String houseType) {
        this.houseType = houseType;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getRentType() {
        return rentType;
    }

    public void setRentType(String rentType) {
        this.rentType = rentType;
    }

    public String getCommentState() {
        return commentState;
    }

    public void setCommentState(String commentState) {
        this.commentState = commentState;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
